package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;

/**
 * 1.在@SpringBootApplication中增加Controller/Service层扫描配配置
 * 2.增加新的Mapper路径配置 @MapperScans，以扫描到Mapper接口；
 * 3.增加Mapper.xml配置，在Yml中的mybatis部分配置即可
 * 启动程序
 * 
 * @author ruoyi
 */
@MapperScans(value = {@MapperScan("com.ruoyi.**.mapper"),@MapperScan("com.wushi.**.mapper")})
@SpringBootApplication(scanBasePackages = {"com.ruoyi","com.wushi"}, exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  若依启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}